package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * 设备信息--厂家编号（1）、名称（2）供应商等
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("device_option")
@ApiModel(value = "DeviceOption对象", description = "设备信息--厂家编号（1）、名称（2）供应商等")
public class DeviceOption implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("设备类型（ZUJIAN：组件，\n" +
            "NBQ：逆变器，\n" +
            "CJQ：采集器，\n" +
            "PDX：配电箱，\n" +
            "ZLDL、直流电缆，\n" +
            "ZHIJIA：支架）")
    private String deviceType;

    @ApiModelProperty("信息类型（1：设备厂家编号，2：设备厂家名称，3：供应商，4：采购方式，5：规格型号，6：组件功率，7：材质）")
    private Byte infoType;

    @ApiModelProperty("详细信息")
    private String detailedInfo;

    @ApiModelProperty("简称")
    private String shortName;

    @ApiModelProperty("代码")
    private String code;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
